#include <iostream>

using namespace std;

int length(string str)
{
	int i = 0;
	
	while(str[i] != '\0')
		i ++;

	return i;
}

int main(void)
{
	string str;
	cout << "string: ";
	cin >> str;

	int l = length(str);

	cout << l << endl;

	return 0;
}
